package org.example.controller;

import org.example.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller//获取bean对象
public class UserController {
    //@Resource根据name 进行装配 但是jdb11之后没了
    @Autowired //根据Type进行装配
    private Userservice userserviceimp;

    public Userservice getUserserviceimp() {
        return userserviceimp;
    }

    public void setUserserviceimp(Userservice userserviceimp) {
        this.userserviceimp = userserviceimp;
    }
}
